<template>
    <div class="information">
        <h3> 个人信息 </h3>
        <div> 姓名: {{ username }} </div>
        <div> 年纪: {{ age }} </div>
        <div> 是否单身: {{ isSingle }} </div>
        <div> 座驾: {{ car.brand }} </div>
        <div> 兴趣爱好: {{ hobby.join(',') }} </div>

    </div>
</template>
<script>
export default{
    props:['username','age','car','hobby','isSingle']
}
</script>
<style>
.information{
    border:2px solid black ;
}
</style>